package com.ndd.exception;

import com.ndd.enums.ServiceCode;
import lombok.Getter;

/**
 * 2024/4/25 10:39
 * wuhon
 * 业务异常
 */
public class ServiceException extends RuntimeException{
    @Getter //提供一个getter 供外部访问
    private ServiceCode serviceCode;
    public ServiceException( ServiceCode serviceCode,String message) {
        super(message);
        this.serviceCode = serviceCode;
    }
}
